<?php
// Load Header
$this->set("title_for_layout", $category['NewsCategory']['name']);
echo $this->Html->css('news', 'stylesheet', array('type' => 'text/css'));

?>

<div class="content news_page">
    <h1 class="title" id='title_of_content'>Luận khoa học</h1>
	<div class="right_content">
	
		<div class="section">
			<ul class="poromotion">
				<li><a href="#"><img src="img/news/img_promotion_01.jpg" alt="" /></a></li>
				<li><a href="#"><img src="img/news/img_promotion_02.jpg" alt="" /></a></li>
			</ul>
		</div>
		<!-- InstanceEndEditable -->
	</div>
	<div class="main_content">
		<!-- InstanceBeginEditable name="main content" -->
		<ul class="news_block">
			<?php foreach ($pages as $item):?>
			<li>
				<a href="<?php echo $html->url(array('plugin' => 'sciences', 'controller' => 'sciences', 'action' => 'detail', $item['Science']['alias'], $category_item['ScienceCategory']['alias']));?>"><img class="img_news" src="<?php echo $html->url("/files/items/".$html->getThumbnailName($item['Science']['image']))?>" alt=""/></a>
				<h4><a href="<?php echo $html->url(array('plugin' => 'sciences', 'controller' => 'sciences', 'action' => 'detail', $item['Science']['alias'], $category_item['ScienceCategory']['alias']));?>"><?php echo $item['Science']['title']?></a></h4>
				<p><?php echo strip_tags($item['Science']['description']);?></p>
				<p><span><?php echo date($item['Science']['created']); ?></span></p>
			</li>
		<?php endforeach;?>
		</ul>
		<?php echo $this->element('pagination/pagination', array('model' => 'Science'));?>
        <div class='go_to_top'>[ <a href='#'><?php __("Đầu trang"); ?></a> ]</div>
		<!-- InstanceEndEditable -->
	</div>
</div>